package com.example.mqtt.entity.VO;

import lombok.Data;
import lombok.ToString;

import java.util.List;

@Data
@ToString
public class RealDataVO {


    private String id;


    private String boatCode;

    //时间戳 单位毫秒
    private Long timeStamp;

    private double runningTime;


    //时间戳，time[0] 精确到秒，time[1] 毫秒值
    private int[] time;


    private double avgSpeed;


    private double distance;


    private double speed;


    private Double boatGPS;


    private List<Person> allPersons;

    @Data
    public static class Person {


        private String id;


        //关联user_t 表，标识对应的训练人员
        private String userId;

        private double pedalForce;


        private double seatSpeed;


        private double kickSpeed;


        private double heartRate;


        private List<Paddle> paddles;

    }

    @Data
    public static class Paddle {


        private String id;


        private double[] angle;


        private double paddleFreq;


        private double boltForce;


        private PaddleSpeed paddleSpeed;


        private PaddleAngle paddleAngle;


        private Object arcLen;


        private double work;


        private double wTotal;
    }

    @Data
    public static class PaddleSpeed {
        private String id;

        private double value;

        private double peak;

        private double average;
    }

    @Data
    public static class PaddleAngle {

        private String id;

        private double value;


        private double in;

        private double out;
    }

}
